﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wms.Core.Entities;

namespace Wms.Core.Extensions
{
	public static class StockOutOrderExtensions
	{
		public static int TotalQuantity(this StockOutOrder order)
		{
			return order.Details?.Sum(d => d.Quantity) ?? 0;
		}
	}
}
